package com.gome.ocean.dao.yugong;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.github.pagehelper.Page;
import com.gome.ocean.dao.model.yugong.YgManagerBO;

/**
 * @作者 haqiaolong
 * @创建时间 2016-04-25 14:00:29
 * @版本 1.00
 * @修改记录
 * 
 * <pre>
 */
@Repository("ygManagerDAO")
public interface YgManagerDAO {

    int saveYgManagerBO(YgManagerBO ygManager);

    int deleteYgManagerBOById(Long id);

    int updateYgManagerBOById(YgManagerBO ygManager);

    YgManagerBO findYgManagerBOById(Long id);

    Page<YgManagerBO> findAllYgManagerBOs(RowBounds rowBounds);

    Page<YgManagerBO> findAllManageByProject(@Param("projects") List<String> projects, RowBounds rowBounds);

    int enabledManager(Long id);

    int disableManager(Long id);

    List<YgManagerBO> findUnoccupiedManagers();
}
